<!--页面组件-->
<template>
  <CCard>
    <CCardBody>
      <div>
        <iframe
          :src="url"
          scrolling="yes"
          marginheight="0"
          marginwidth="0"
          class="iframe"
        ></iframe>
      </div>
    </CCardBody>
  </CCard>
</template>


<!--js代码-->
<script>
export default {
  name: "myFile",
  props: {},
  data() {
    return {
      url: "",
    };
  },
  created() {},
  mounted() {
    let name = window.sessionStorage.getItem("user");
    let userId = window.sessionStorage.getItem("userId");
    this.url = fileUrl + "/?name=" + name + "&userId=" + userId;
    // this.url= 'http://172.16.40.207:8080/?name=' + name + '&userId=' + userId
  },
  methods: {},
};
</script>


<!--css样式-->
<style  scoped>
.iframe {
  width: 100%;
  height: 87vh;
  border: 1px saddlebrown;
}
.main {
  height: 100%;
}
</style>